package org.nfyszny.zzzs.modules.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.nfyszny.zzzs.modules.entity.ZzzsRecordEnterprise;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * @Description: 企业备案
 * @Author: jeecg-boot
 * @Date: 2022-11-11
 * @Version: V1.0
 */
public interface IZzzsRecordEnterpriseService extends IService<ZzzsRecordEnterprise> {
    /**
     * 新添企业备案
     *
     * @param zzzsRecordEnterprise
     */
    void saveRecordEnterpriseInfo(ZzzsRecordEnterprise zzzsRecordEnterprise);

    /**
     * 获取该企业的备案状态
     */
    Map<String, Object> getEnterpriseStatus();

    /**
     * 根据公司id查询
     *
     * @param queryWrapper
     * @param page
     * @return
     */
    IPage<ZzzsRecordEnterprise> getListByCompanyId(QueryWrapper<ZzzsRecordEnterprise> queryWrapper, Page<ZzzsRecordEnterprise> page);

    /**
     * 保存公司备案信息
     *
     * @param zzzsRecordEnterprise
     */
    void saveFiling(ZzzsRecordEnterprise zzzsRecordEnterprise);


    /**
     * 获取用户登录企业备案是否完成
     *
     * @return
     */
    Boolean getEnterpriseSuccessStatus();

    @Transactional
    void change(ZzzsRecordEnterprise zzzsRecordEnterprise);

    @Transactional
    void review(ZzzsRecordEnterprise zzzsRecordEnterprise);

    /**
     * 查询已备案的详情
     * @param id
     * @return
     */
    ZzzsRecordEnterprise getHaveInfoById(String id);
}
